package cn.mesmile;

/**
 * @author zb
 * @date 2021/2/24 11:24
 * @Description
 */
public class Hello {

    {
        /*
        System.getProperty("java.library.path") = D:\software\jdk1.8\bin;
        C:\Windows\Sun\Java\bin;
        C:\Windows\system32;
        C:\Windows;
        C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
        C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
        C:\Windows\System32\WindowsPowerShell\v1.0\;
        C:\Windows\System32\OpenSSH\;
        C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
        D:\software\apache-maven-3.6.3\bin;
        D:\software\git2.27\Git\cmd;
        D:\software\erl-23.0\bin;
        C:\Program Files\dotnet\;
        C:\Users\Bing.Zheng1\AppData\Local\Microsoft\WindowsApps;
        C:\Users\Bing.Zheng1\.dotnet\tools;.
         */
//        System.loadLibrary("hello");
        /*
         * 系统加载其他的语言的函数
         */
        System.load("D:\\IdeaProjects\\xdclass-cloud\\xdclass-native" +
                "\\src\\main\\java\\cn\\mesmile\\hello.dll");
    }

    /**
     * 就这个native关键字.标记了这个接口,看起来像是abstract
     */
    public native void sayHello();

    public static void main(String[] args) {
        new Hello().sayHello();
    }

}
